package org.linlinjava.litemall.db.service;


import org.linlinjava.litemall.db.dao.SubscribeStatisticMapper;
import org.linlinjava.litemall.db.domain.SubscribeStatisticsVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SubscribeStatisticService {
    @Resource
    private SubscribeStatisticMapper subscribeStatisticMapper;

//    public List<SubscribeStatisticsVo> statistics(String startTime,
//                                                  String endTime,
//                                                  Integer shopId){
//        return subscribeStatisticMapper.statistics(startTime,endTime,shopId,subscribeId);
//    }

    public Integer queryRegions(Integer shopId){
        return subscribeStatisticMapper.queryRegions(shopId);
    }

    public Integer querySubscribeNum(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.querySubscribeNum(startTime,endTime,shopId,subscribeId);
    }

    public Integer querySubscribeSelfNum(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.querySubscribeSelfNum(startTime,endTime,shopId,subscribeId);
    }

    public Integer querySubscribeStoreNum(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.querySubscribeStoreNum(startTime,endTime,shopId,subscribeId);
    }

    public Integer querySubscribeMailNum(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.querySubscribeMailNum(startTime,endTime,shopId,subscribeId);
    }

    public Integer queryUserTotal(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.queryUserTotal(startTime,endTime,shopId,subscribeId);
    }

    public Double queryTotalPrice(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.queryTotalPrice(startTime,endTime,shopId,subscribeId);
    }

    public Integer queryTotalPoint(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.queryTotalPoint(startTime,endTime,shopId,subscribeId);
    }

    public Integer queryOrderNum(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.queryOrderNum(startTime,endTime,shopId,subscribeId);
    }

    public Integer queryGoodsNum(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.queryGoodsNum(startTime,endTime,shopId,subscribeId);
    }

    public Integer queryGoodsBasePrice(String startTime,String endTime,Integer shopId,Integer subscribeId){
        return subscribeStatisticMapper.queryGoodsBasePrice(startTime,endTime,shopId,subscribeId);
    }

    public Integer querySubscribeBasePrice() {
        return subscribeStatisticMapper.querySubscribeBasePrice();
    }
}
